package com.cc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cc.service.UserService;
import com.cc.mapper.UserMapper;
import com.dy.cc.User;
import com.dy.cc.confirmOrder;
import com.kaoshi.common.config.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author Lenovo
* @description 针对表【user】的数据库操作Service实现
* @createDate 2024-11-28 10:44:30
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll(User user,Integer uid) {
        return userMapper.findAll(user,uid);
    }

    @Override
    public List<User> find(User user,Integer uid) {
        return userMapper.find(user,uid);
    }

    @Override
    public User findById(Integer uid) {
        return baseMapper.selectById(uid);
    }

    @Override
    public void update1(User user) {
        baseMapper.update1(user);
    }


}




